Logging Options

Wednesday, November 1, 2023

6:40 PM

OneMore writes a log file to %TEMP%\OneMore.log - this might be %TMP%\OneMore.log on your system. You can easily get to this from the hyperlink on the OneMore About dialog, presuming OneMore is working enough so you can get there. But often, errors will be written to this log file. It's a good diagnostic tool when developing OneMore but can also be helpful when reporting a bug.

 

The log file is designed to be as streamlined as possible. It generates a header when OneNote starts up and it indicates when OneNote shuts down. Each line in the log file is prefaced with the managed threadpool threadID and a timestamp.

 

The Settings General sheet includes a checkbox that enables verbose logging. This writes additional detailed logging in some cases.

 

The logging option is saved in your personal settings file at %APPDATA%\OneMore\Settings.xml as shown here.

 

<?xml version="1.0" encoding="utf-8"?>

<settings>

  <GeneralSheet>

    <language>en-US</language>

    <logging>verbose</logging>

  </GeneralSheet>

  ...

</settings>

 

Another valid option here is "debug" but that needs to be set manually in the Settings.xml file. There is no UI to enable/disable debug logging. Debug logging also enables verbose logging. If debug logging is set, the enable verbose logging option in the Settings dialog is disabled.

 

 

#omwiki #omdeveloper

 

© 2020 Steven M Cohn. All rights reserved.

Please consider a sponsorship or one-time donation to support ongoing development

 

Created with OneNote.